﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Core.SeedData;

/// <summary>
/// 菜单数据种子
/// </summary>
public class SysMenuSeedData : IEntitySeedData<SysMenu>
{
    public IEnumerable<SysMenu> HasData(DbContext dbContext, Type dbContextLocator)
    {
        return GetData();
    }

    public static IEnumerable<SysMenu> GetData()
    {
        return new[]
           {
                new SysMenu(){Id=1,MenuAreaType=MenuAreaType.Mvc,Area="HtAdmin",PCode="HtAdmin",Code="HtAdmin_System",MenuType=MenuType.目录,Name="系统管理",Icon="layui-icon layui-icon-set-fill",IsEnable=true,IsShow=true,Sort=1},
                new SysMenu(){Id=2,MenuAreaType=MenuAreaType.Mvc,Area="HtAdmin",PCode="HtAdmin",Code="HtAdmin_User",MenuType=MenuType.目录,Name="用户管理",Icon="layui-icon layui-icon-user",IsEnable=true,IsShow=true,Sort=2},
                new SysMenu(){Id=3,MenuAreaType=MenuAreaType.Mvc,Area="HtAdmin",PCode="HtAdmin",Code="HtAdmin_NoticeLog",MenuType=MenuType.目录,Name="通知日志",Icon="layui-icon layui-icon-log",IsEnable=true,IsShow=true,Sort=5},
                new SysMenu(){Id=4,MenuAreaType=MenuAreaType.Mvc,Area="HtAdmin",PCode="HtAdmin",Code="HtAdmin_Statistics",MenuType=MenuType.目录,Name="数据统计",Icon="layui-icon layui-icon-chart",IsEnable=true,IsShow=true,Sort=6},
                new SysMenu(){Id=5,MenuAreaType=MenuAreaType.Mvc,Area="HtAdmin",PCode="HtAdmin",Code="HtAdmin_Developer",MenuType=MenuType.目录,Name="开发工具",Icon="layui-icon layui-icon-util",IsEnable=true,IsShow=true,Sort=7},
        };
    }
}